import type { FC } from "react";
import style from "./index.module.scss";

interface IndexProps {
  onEdit: () => void;
}

const Index: FC<IndexProps> = ({ onEdit }) => {
  return (
    <div className={style.addItemBtnWraper}>
      <div
        className={style.addItemBtn}
        onClick={() => {
          onEdit?.();
        }}
      >
        +添加
      </div>
    </div>
  );
};

export default Index;
